package com.ruoyi.location.quartz;

import com.ruoyi.location.repository.mail.MailUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("locationTouch")
public class LocationTouch {
    @Autowired
    private MailUtil mailUtil;

    public void touch(String mails) {
        String[] mailArray = mails.split(",");
        for (String mail : mailArray) {
            mailUtil.sendSimpleMail(mail, "位置上报触发", "1");
        }
    }

}
